
import request from '@/utils/request'

// 获取地址
export function getDelivery(userId) {
  
  return request({
    'url': `/home/getDelivery/${userId}`,
    'method': 'get',
  })
}
// 新增配送记录
export function addDelivery(data) {
    return request({
        url: '/home/addDeliveryInfo',
        method: 'post',
        data
    });
}

// 修改配送记录
export function updateDelivery(data) {
    return request({
        url: '/home/updateDeliveryInfo',
        method: 'post',
        data:data
    });
}
// 删除配送记录
export function deleteDelivery(deliveryId) {
    return request({
        url: `/home/deleteDeliveryInfo/${deliveryId}`,
        method: 'delete'
    });
}
